// 查询对应元素的宽高等数据
export default function (selector) {
  return new Promise((resolve)=>{
    const query = wx.createSelectorQuery()
    query.select(selector).boundingClientRect()
    // query.exec(resolve)
    query.exec(res=>{
      resolve(res)
    })
  })
}